//
//  YahooStockConfidenceRemainCollector.m
//  MarketDataColloctor
//
//  Created by jiro on 10/02/28.
//  Copyright 2010 jiro music. All rights reserved.
//

#import "YahooStockConfidenceRemainHtmlCollector.h"
#import "StockBrandJa.h"
#import "../WebResourceCollector.h"
#import "../../../Commons/MarketJaDbOperator.h"
#import "../../../DbTypes/DbTypes.h"
#import "../LocalFilePath.h"

@implementation YahooStockConfidenceRemainHtmlCollector

- (NSURL*) buildWebPageAddressFromYear: (int) yearFrom month: (int) monthFrom day: (int) dayFrom 
	toYear: (int) yearTo month: (int) monthTo day: (int) dayTo 
	andCode0: (NSString*) code0 code1: (NSString*) code1
{
	return [ NSURL URLWithString: [ NSString stringWithFormat:
		@"http://table.yahoo.co.jp/bt?c=%d&a=%d&b=%d&f=%d&d=%d&e=%d&g=d&s=%@&y=0&z=%@.%@",
		yearFrom, monthFrom, dayFrom, yearTo, monthTo, dayTo, code0, code1 ] ];
}

- (BOOL) collectWithCode0: (NSString*) code0 
	code1: (NSString*) code1
	andMarketDataType: (MarketData::Type) type 
	intoStrings: (NSMutableArray*) htmlStrings
{
	return [ super collectWithCode0: code0 code1: code1 andMarketDataType: MarketData::Type_StockConfidenceRemainJa intoStrings: htmlStrings ];
}

@end
